package com.blb.community.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.blb.community.entity.ZyCommunityInteraction;
import com.blb.community.entity.vo.CommunityInteractionVO;
import com.blb.community.entity.vo.ZyCommunityInteractionVo;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * <p>
 * 社区互动表 Mapper 接口
 * </p>
 *
 * @author 帅帅
 * @since 2022-07-02
 */
@Component
public interface ZyCommunityInteractionMapper extends BaseMapper<ZyCommunityInteraction> {
     /**
      * 分页
      * @param page
      * @return
      */
     IPage<ZyCommunityInteractionVo> getAllCommentsPage(IPage<ZyCommunityInteractionVo> page);

     /**
      * 查所有
      * @return
      */
     List<ZyCommunityInteractionVo> getAllCommentsPage();
    /**
     * 小区互动分页
     * @param page
     * @return
     */
    IPage<CommunityInteractionVO> getInteractionPage(CommunityInteractionVO communityInteractionVO, IPage<CommunityInteractionVO> page);

    void delInteraction(Long id);
}
